package com.cy.sys.dao;

import java.util.List;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import com.cy.sys.log.Dao.SysLogDao;
import com.cy.sys.log.Dao.SysUserDao;
import com.cy.sys.pojo.SysLog;

@SpringBootTest
public class syslogdao {
	@Autowired
	private SysLogDao sysdao;
	
	@Autowired
	private SysUserDao sraa;
	
	@Test
	public void tresrwadap() {
		int syso = sysdao.getrowConnt("");
		System.out.println("总行数="+syso);
	}
	
	@Test
	public void testsysolog() {
		List<SysLog> syso = sysdao.getfindObject("admin", 1, 3);
		//jdk8新语法
		syso.forEach(itme->System.out.println(itme));
	}
	
	@Test
	public void testsyg() {
		int as = sraa.getUserRowCount("");
		//jdk8新语法
		System.out.println(as);;
	}
}
